4 * HTML template for Special:Userlogin form
6 * @subpackage Templates
8 class UserloginTemplate
extends QuickTemplate
{
10 if( $this->data
['error'] ) {
12 <h2
><?php
$this->msg('loginerror') ?
>:</h2
>
13 <p
class='error'><?php
$this->html('error') ?
></p
>
15 <h2
><?php
$this->msg('login' ) ?
>:</h2
>
16 <p
><?php
$this->msg('loginprompt') ?
></p
>
18 <form name
="userlogin" id
="userlogin" method
="post" action
="<?php $this->text('action') ?>">
21 <td align
='right'><?php
$this->msg('yourname') ?
>:</td
>
23 <input tabindex
='1' type
='text' name
="wpName"
24 value
="<?php $this->text('name') ?>" size
='20' />
27 <input tabindex
='3' type
='submit' name
="wpLoginattempt"
28 value
="<?php $this->msg('login') ?>" />
32 <td align
='right'><?php
$this->msg('yourpassword') ?
>:</td
>
34 <input tabindex
='2' type
='password' name
="wpPassword"
35 value
="<?php $this->text('password') ?>" size
='20' />
38 <input tabindex
='4' type
='checkbox' name
="wpRemember"
39 value
="1" id
="wpRemember"
40 <?php
if( $this->data
['remember'] ) { ?
>checked
="checked"<?php
} ?
>
41 /><label
for="wpRemember"><?php
$this->msg('remembermypassword') ?
></label
>
44 <?php
if( $this->data
['create'] ) { ?
>
46 <td colspan
='3'> 
;</td
>
49 <td align
='right'><?php
$this->msg('yourpasswordagain') ?
>:</td
>
51 <input tabindex
='5' type
='password' name
="wpRetype"
52 value
="<?php $this->text('retype') ?>"
55 <td
><?php
$this->msg('newusersonly') ?
></td
>
58 <td align
='right'><?php
$this->msg('youremail') ?
>:</td
>
60 <input tabindex
='7' type
='text' name
="wpEmail"
61 value
="<?php $this->text('email') ?>" size
='20' />
63 <?php
if( $this->data
['userealname'] ) { ?
>
67 <td align
='right'><?php
$this->msg('yourrealname') ?
>:</td
>
69 <input tabindex
='8' type
='text' name
="wpRealName"
70 value
="<?php $this->text('realname') ?>" size
='20' />
75 <input tabindex
='9' type
='submit' name
="wpCreateaccount"
76 value
="<?php $this->msg('createaccount') ?>" />
77 <?php
if( $this->data
['createemail'] ) { ?
>
78 <input tabindex
='6' type
='submit' name
="wpCreateaccountMail"
79 value
="<?php $this->msg('createaccountmail') ?>" />
85 <td colspan
='3'> 
;</td
>
88 <td colspan
='3' align
='left'>
90 <?php
$this->msgHtml( 'emailforlost' ) ?
><br
/>
91 <input tabindex
='10' type
='submit' name
="wpMailmypassword"
92 value
="<?php $this->msg('mailmypassword') ?>" />
99 $this->msgHtml( 'loginend' );